home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / pmpsrc11.zip / KEYS.H < prev    next >
Text File  |  1991-07-30  |  2KB  |  66 lines

  1. /*
  2.     keys.h -- Definitions for keys
  3.  
  4.   Poor Man's Packet (PMP)
  5.   Copyright (c) 1991 by Andrew C. Payne    All Rights Reserved.
  6.  
  7.   Permission to use, copy, modify, and distribute this software and its
  8.   documentation without fee for NON-COMMERCIAL AMATEUR RADIO USE ONLY is hereby
  9.   granted, provided that the above copyright notice appear in all copies.
  10.   The author makes no representations about the suitability of this software
  11.   for any purpose.  It is provided "as is" without express or implied warranty.
  12.  
  13. */
  14. /* ----- Keyboard Stuff ----- */
  15.  
  16. #define getkey()    ((KEY) bioskey(0))
  17. #define keypressed()    ((int) bioskey(1))
  18. #define shiftstat()    ((int) bioskey(2))
  19.  
  20. #define scancode(x)    ((x >> 8) &0xFF)
  21. #define asciicode(x)    (x & 0xFF)
  22.  
  23. /* ----- IBM Function Key Scan codes ----- */
  24.  
  25. #define F1      0x3B00
  26. #define F2      0x3C00
  27. #define F3      0x3D00
  28. #define F4      0x3E00
  29. #define F5      0x3F00
  30. #define F6      0x4000
  31. #define F7      0x4100
  32. #define F8      0x4200
  33. #define F9      0x4300
  34. #define F10     0x4400
  35. #define HOME    0x4700
  36. #define UP      0x4800
  37. #define PGUP    0x4900
  38. #define LEFT    0x4B00
  39. #define RIGHT   0x4D00
  40. #define END     0x4F00
  41. #define DOWN    0x5000
  42. #define PGDN    0x5100
  43. #define INS     0x5200
  44. #define DEL     0x5300
  45. #define ESC     0x011B
  46. #define RET     0x1C0D
  47. #define BKS     0x0E08
  48. #define SPC    0x3920
  49. #define    PLUS    0x4E2B        /* keypad "+" */
  50. #define MINUS    0x4A2D        /* keypad "-" */
  51.  
  52. #define    ALTX    0x2d00        /* ALT- keypresses */
  53. #define ALTB    0x3000
  54. #define ALTC    0x2e00
  55. #define ALTD    0x2000
  56. #define ALTH    0x2300
  57. #define ALTJ    0x2400
  58. #define ALTL    0x2600
  59. #define ALTN    0x3100
  60. #define ALTP    0x1900
  61. #define ALTQ    0x1000
  62. #define ALTS    0x1f00
  63. #define ALTU    0x1600
  64. #define ALTW    0x1100
  65. #define ALTZ    0x2c00
  66.